public class Test {
	public static void main(String[] args) {
		
		
		//Durchlauf normal:
		System.out.println("------normal-----");
		int holz = 5;
		int z1 = 4;
		int v1 = 5;
		int v2 = 5;
		int s1 = 2;
		int s2 = 2;
		int s3 = 2;
		int s4 = 2;
		int s5 = 2;
		int container1 = 45;
		int container2 = 35;
		
		//int holz, int Zerteilruntime, int Verpackungsruntime1,int Verpackungsruntime2, int Schleifruntime1, int Schleifruntime2, int Schleifruntime3, int Schleifruntime4, int Schleifruntime5,int Containergroesse)
		
		Fabrik f1 = new Fabrik(holz,z1,v1,v2,s1,s2,s3,s4,s5,container1,container2);
		f1.start();
		
		while(f1.getThreadGroup() != null) {}
		
		//Durchlauf notstop:
		System.out.println("------notstop-----");
		holz = 5;
		z1 = 4;
		v1 = 5;
		v2 = 5;
		s1 = 2;
		s2 = 2;
		s3 = 2;
		s4 = 2;
		s5 = 2;
		container1 = 45;
		container2 = 35;
		
		//int holz, int Zerteilruntime, int Verpackungsruntime1,int Verpackungsruntime2, int Schleifruntime1, int Schleifruntime2, int Schleifruntime3, int Schleifruntime4, int Schleifruntime5,int Containergroesse)
		Fabrik f2 = new Fabrik(holz,z1,v1,v2,s1,s2,s3,s4,s5,container1,container2);
		f2.start();
	
		//notstop
		f2.stopAll(300l);
		
		while(f2.getThreadGroup() != null) {}
		
		//Durchlauf zu kleine Behaelter:
		System.out.println("------kleine Behaelter-----");
		holz = 5;
		z1 = 4;
		v1 = 5;
		v2 = 5;
		s1 = 2;
		s2 = 2;
		s3 = 2;
		s4 = 2;
		s5 = 2;
		container1 = 1;
		container2 = 1;
		
		//int holz, int Zerteilruntime, int Verpackungsruntime1,int Verpackungsruntime2, int Schleifruntime1, int Schleifruntime2, int Schleifruntime3, int Schleifruntime4, int Schleifruntime5,int Containergroesse)
		Fabrik f3 = new Fabrik(holz,z1,v1,v2,s1,s2,s3,s4,s5,container1,container2);
		f3.start();
		while(f3.getThreadGroup() != null) {}
		
		//Durchlauf unterschiedliche Arbeitszeiten
		System.out.println("------unterschiedliche Arbeitszeiten-----");
		holz = 35;
		z1 = 4;
		v1 = 5;
		v2 = 6;
		s1 = 2;
		s2 = 4;
		s3 = 6;
		s4 = 8;
		s5 = 10;
		container1 = 40;
		container2 = 40;
		
		//int holz, int Zerteilruntime, int Verpackungsruntime1,int Verpackungsruntime2, int Schleifruntime1, int Schleifruntime2, int Schleifruntime3, int Schleifruntime4, int Schleifruntime5,int Containergroesse)
		Fabrik f4 = new Fabrik(holz,z1,v1,v2,s1,s2,s3,s4,s5,container1,container2);
		f4.start();
		
		while(f4.getThreadGroup() != null) {}
		//Durchlauf Viel holz; mehr als 10 sec
		System.out.println("------Viel holz; d.h. terminiert nach 10 sec-----");
		holz = 5000;
		z1 = 45;
		v1 = 50;
		v2 = 50;
		s1 = 20;
		s2 = 20;
		s3 = 20;
		s4 = 20;
		s5 = 20;
		container1 = 40;
		container2 = 40;
		
		//int holz, int Zerteilruntime, int Verpackungsruntime1,int Verpackungsruntime2, int Schleifruntime1, int Schleifruntime2, int Schleifruntime3, int Schleifruntime4, int Schleifruntime5,int Containergroesse)
		Fabrik f5 = new Fabrik(holz,z1,v1,v2,s1,s2,s3,s4,s5,container1,container2);
		f5.start();
		
		while(f5.getThreadGroup() != null) {}
	}

}
